import ApiClient from '../base-api'

const userApi = new ApiClient('/sys/user')

// 修改个人信息
userApi.updateProfile = (form) => {
  return userApi.put('update-profile', form)
}

// 修改密码
userApi.updatePassword = (form) => {
  return userApi.put('update-password', form)
}

// 重置密码
userApi.resetPassword = (id) => {
  return userApi.get(`reset-password/${id}`)
}

// 分配角色
userApi.assignRole = (form) => {
  return userApi.post('assign-role', form)
}
export default userApi
